<template>
    <div class="container">
        <!-- 模板入口 -->
        <router-view></router-view>
        
    </div>
</template>

<script>
    export default {
        data() {
            return {
                active: 0,
                icon: {
                    active: 'https://img01.yzcdn.cn/vant/user-active.png',
                    inactive: 'https://img01.yzcdn.cn/vant/user-inactive.png',
                },
            };
        },

        watch:{
            active:{
                // immediate:true,
                handler(val){
                    this.$router.push(['/index', '/recommend', '/cart', '/me'][val])
                }
            }
        },
    };
</script>


<style lang="less" scoped>
    .container{
        height: 100%;
    }
</style>